/*
 * CMutexUtils.cpp
 *
 *  Created on: 2011-9-15
 *      Author: stargui
 */

#include "CMutexUtils.h"
#include <stdio.h>

CMutexUtils::CMutexUtils()
{
	pthread_mutex_init(&_mutex, NULL);
}

CMutexUtils::~CMutexUtils()
{
	pthread_mutex_destroy(&_mutex);
}

void CMutexUtils::ThreadLock()
{
	pthread_mutex_lock(&_mutex);
}

void CMutexUtils::ThreadUnlock()
{
	pthread_mutex_unlock(&_mutex);
}
